<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$kode=$_POST['kode'];
	$hari=$_POST['hari'];
	$start=$_POST['start'];
	$end=$_POST['end'];
	$status=$_POST['status'];
	$nrp=$_POST['nrp'];
	$nip=$_POST['nip'];
	$query=mysql_query("insert into jadwal values('$kode','$hari','$start','$end','$status','$nrp','$nip')");
	
	if($query)
	{
		echo "Data berhasil ditambah<br>";
		echo "<a href='menu_jadwal.php'>Back To Menu Jadwal</a><br>";
		echo "<a href='menu_admin.php'>Back To Menu Admin<br></a>";
	}
	else
	{
		echo "Data gagal ditambah<br>";
		echo "<a href='menu_jadwal.php'>Back To Menu Jadwal</a><br>";
		echo "<a href='menu_admin.php'>Back To Menu Admin</a>";
	}
	}
	else
	header("Location:index.php");
?>	